package com.thirteen.dao.pojo;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * DO类：对应查询sql语句的输出字段，一般直接映射数据库中表结构，联表查询例外
 *
 * @author hhx
 * @since 2020-8-27 23:28:48
 */
@EqualsAndHashCode
@Data
@Entity
@Table(name = "example_table")
public class ExampleDO implements Serializable {

    @Id
    @Column(name = "id", unique = true)
    private Long id;

    @Column(name = "gmt_create")
    private Date gmtCreate;

    @Column(name = "title")
    private String title;

    @Column(name = "content")
    private String content;

    @Column(name = "desc")
    private String desc;

}
